home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore 64 Scene Diskmags Assortment
/
Commodore_CEE_Vol._1_Issue_06_1995_Jack_Vander_White_Disk_1_of_3_Side_B.d64
/
test writer v3.1
(
.txt
)
< prev
Wrap
Commodore BASIC
|
2023-02-26
|
15KB
|
644 lines
100 gosub9005
105 dim tf$(40),an$(40),fl$(40),fs$(40),ma$(40),mn$(40),es$(20),en$(20),b(20)
110 dim as$(100),r1(40),r2(40),tt(40),ss(40),sp(40),sq(40),sr(20)
115 gosub8005
120 close4:gosub1000
125 on z goto2005,3000,3005,4000,5000,6005,8040,11000,130
130 poke53280,2:printchr$(147);tab(35);"[209][213][201][212]"
135 print:print:print
140 print" [193]re you finished with [212][197][211][212] [215][210][201][212][197][210]?[144]"
145 print:print
150 print"[208]ress [211]pacebar[146] for main menu"
155 print" [209] key[146] to quit program"
160 gosub180
165 if z$=" " then120
170 if z$="q" then end
175 goto160
180 getz$:ifz$=""then180
185 return
190 end
1000 poke 53280,5:poke53281,6:poke646,1
1002 printchr$(14)"[147] [212][197][211][212] [215][210][201][212][197][210] v3.1"
1005 print" by [211]helton [195]ole"
1010 print:print" [205][197][206][213][146]
1015 [153]:[153]
1020 [153]" 1. (NULL)rite questions
1025 print" 2. [204]oad test from disk
1030 [153]" 3. (NULL)erge test from disk
1035 print" 4. [211]ave test to disk
1040 [153]" 5. (NULL)rint test
1045 print" 6. [197]dit
1050 [153]" 7. lenlean slate
1055 print" 8. [196]isk [195]ommands"
1058 print" 9. [209]uit
1060 [153]"
1065 print" [212]otal number of questions.....";tq
1070 if dq=0 then1080
1075 print" [201]ncluding"dq"[157] deleted question(s)[146]"
1080 print:print
1085 gosub1115
1090 gosub180
1095 z=val(z$)
1100 if z<1 or z>9 then1090
1105 print chr$(14)
1110 return
1115 print" [212]rue-[198]alse [207]pinion.........";q1;
1120 if dt>0then t1=dt:gosub 1180:goto1130
1125 print
1130 print" [198]ill-in....................";q2;
1135 if df>0then t1=df:gosub1180:goto1145
1140 print
1145 print" [205]atching...................";q3;
1150 if dm>0then t1=dm:gosub1180:goto1160
1155 print
1160 print" [197]ssay......................";q4;
1165 if de>0then t1=de:gosub1180:goto1175
1170 print
1175 return
1180 t1$=str$(t1):print"(";mid$(t1$,2,len(t1$));")":return
2005 printchr$(147);"[208]ress spacebar for menu"tab(25)"[209][213][197][211][212][201][207][206] [197][206][212][210][217][146]"
2010 printleft$(cm$,2);"[197]nter [212][146]-[198] [197][146]ssay [205][146]atching [198][146]ill-in"
2015 get z$
2020 if z$="t"then gosub2050:goto2065
2025 if z$="f"then gosub2050:goto2160
2030 if z$="e"then gosub2050:goto2220
2035 if z$="m"then gosub2050:goto2330
2040 if z$=" "then gosub2050:goto120
2045 goto2015
2050 print left$(cm$,2);left$(v$,80):return
2065 x=120
2070 q1=q1+1:hd=q1:ifhd<41thenhd$="[147][212]rue/[198]alse-[207]pinion":gosub2385:goto2080
2075 gosub2405:q1=q1-1:goto120
2080 if p$="" then q1=q1-1:goto2005
2085 tf$(q1)=p$
2090 print left$(cm$,10);"is the answer [212][146]rue, [198][146]alse, or [207][146]pinion?"
2095 get z$
2100 if z$="t" then print"true[146]":goto2120
2105 if z$="f" then print"false[146]":goto2120
2110 if z$="o" then print"opinion[146]":goto2120
2115 goto2095
2120 get z1$
2125 if z1$=chr$(13)then2140
2130 if z1$=chr$(20)then print left$(cm$,11);" [145]":goto2095
2135 goto2120
2140 an$(q1)=z$
2145 tq=tq+1
2150 printchr$(147):goto2070
2160 x=120
2165 q2=q2+1:hd=q2:if hd<41then hd$="[147][213]se [195]= @[146] for fill-in":gosub2385:goto2175
2170 gosub2405:goto120
2175 if p$=""then q2=q2-1:goto2005
2180 fl$(q2)=p$
2185 printleft$(cm$,10);"[197]nter the answer.[146]"
2190 x=39:gosub7010
2195 fs$(q2)=p$
2200 iffs$(q2)=""then2185
2205 tq=tq+1
2210 print chr$(147):goto2160
2220 x=199
2225 q4=q4+1:hd=q4:if hd<21 then hd$="[147][197]ssay question":gosub2385:goto2230
2230 if p$=""then q4=q4-1:goto2005
2235 es$(q4)=p$
2240 print"[197]nter the answer"
2245 print"(press [210][197][212][213][210][206] for"chr$(34)"[193]nswers will vary"chr$(34)")"
2250 x=199:gosub7010
2260 if en$(q4)="" then en$(q4)="answers will vary":print"[193]nswers will vary"
2265 printleft$(cm$,19);"[200]ow many blank lines? (1 - 30)"
2270 gosub2285
2275 b(q4)=val(z1$):if b(q4)<0 or b(q4)>30thenprintleft$(cm$,20)" [145]":goto2270
2280 tq=tq+1:goto2220
2285 z1$=""
2290 gosub180
2295 if z$=chr$(13)then2315
2300 if asc(z$)<48 or asc(z$)>57then2290
2305 z1$=z1$+z$:if len(z1$)>2 then2320
2310 printz$;:goto2290
2315 if len(z1$)<1 then2290
2320 return
2330 x=28
2335 q3=q3+1:hd=q3:ifhd<41thenhd$="[147][205]atching [209]uestions":gosub2385:goto2345
2340 gosub2405:goto120
2345 ma$(q3)=p$
2350 if p$="" then q3=q3-1:goto2005
2355 printleft$(cm$,12);"[193]nswer?"
2360 x=28:gosub7010
2365 mn$(q3)=p$
2370 if mn$(q3)=""then2355
2375 tq=tq+1
2380 printchr$(147):goto2330
2385 printhd$;tab(25)"[209]uestion entry"
2390 printleft$(cm$,2);"[209]uestion #";hd;tab(20);"total questions:";tq
2395 print left$(cm$,3);:gosub7010
2400 hd=0:return
2405 print"[147]";left$(cm$,12);"[210]eached question limit"
2410 print"[208]ress spacebar for menu"
2415 get z$:if z$<>" " then2415
2420 return
3000 print "[147]";tab(28)"[204][207][193][196] [212][197][211][212]":mq=0:m1=0:m2=0:m3=0:m4=0:goto3045
3005 print"[147]";tab(27)"[205][197][210][199][197] [212][197][211][212]":mq=tq:m1=q1:m2=q2:m3=q3:m4=q4
3010 d1=dq:d2=dt:d3=df:d4=dm:d5=de
3015 if tq>0 then3045
3020 print"[206]o test in memory"
3025 print"[208]ress spacebar for menu"
3030 gosub180
3035 if z$=" "then120
3040 goto3030
3045 print"[212]est name:"
3050 print left$(cm$,5);
3055 x=15:gosub7010
3060 if p$="" then120
3065 f$=p$
3070 open15,8,15:print#15,"i0:":gosub4215
3075 open 1,8,3,f$+",s,r":gosub4215
3080 input#1,tq
3085 input#1,dq
3090 input#1,q1
3095 input#1,dt
3100 input#1,q2
3105 input#1,df
3110 input#1,q3
3115 input#1,dm
3120 input#1,q4
3125 input#1,de
3130 if(m1+q1>40)or(m2+q2>40)or(m3+q3>40)or(m4+q4>20)then3140
3135 goto3160
3140 print"[147]";left$(cm$,12);"[197]xceeded question limits":close1:close15
3145 print"[208]ress any key for menu"
3150 gosub180
3155 goto120
3160 fori=m1+1to m1+q1
3165 gosub3260:tf$(i)=left$(a$,ll)
3170 gosub3260:an$(i)=left$(a$,ll)
3175 next
3180 for i=m2+1to m2+q2
3185 gosub3260:fl$(i)=left$(a$,ll)
3190 gosub3260:fs$(i)=left$(a$,ll)
3195 next
3200 fori=m3+1to m3+q3
3205 gosub3260:ma$(i)=left$(a$,ll)
3210 gosub3260:mn$(i)=left$(a$,ll)
3215 next
3220 fori=m4+1to m4+q4
3225 gosub3260:es$(i)=left$(a$,ll)
3230 gosub3260:en$(i)=left$(a$,ll)
3235 input#1,b(i)
3240 next
3245 tq=tq+mq:q1=q1+m1:q2=q2+m2:q3=q3+m3:q4=q4+m4
3250 dq=d1+dq:dt=d2+dt:df=d3+df:dm=d4+dm:de=d5+de
3255 close1:close15:goto120
3260 sys896:ll=peek(142)
3265 return
4000 print"[147]";tab(28)"[211][193][214][197] [212][197][211][212]"
4005 if tq>0then4035
4010 print"[206]o questions to save!
4015 [153]"(NULL)ress spacebar for menu"
4020 [141]180
4025 [139] z$[178] " "[167]120
4030 [137]4020
4035 [153]"(NULL)est name:"
4040 [153] [200](cm$,5);
4045 x[178]15:[141]7010
4050 [139] p$[178]"" [167]120
4055 f$[178]p$
4060 [159]15,8,15:[152]15,"i0:":[141]4215
4065 [159] 1,8,3,f$[170]",s,w":[141]4215
4070 [152]1,tq
4075 [152]1,dq
4080 [152]1,q1
4085 [152]1,dt
4090 [152]1,q2
4095 [152]1,df
4100 [152]1,q3
4105 [152]1,dm
4110 [152]1,q4
4115 [152]1,de
4120 [129] i[178]1 [164] q1
4125 [152]1,tf$(i)
4130 [152]1,an$(i)
4135 [130]
4140 [129] i[178]1 [164] q2
4145 [152]1,fl$(i)
4150 [152]1,fs$(i)
4155 [130]
4160 [129] i[178]1 [164] q3
4165 [152]1,ma$(i)
4170 [152]1,mn$(i)
4175 [130]
4180 [129] i[178]1 [164] q4
4185 [152]1,es$(i)
4190 [152]1,en$(i)
4195 [152]1,b(i)
4200 [130]
4205 [152]1:[160]1:[160]15
4210 [137]120
4215 [132]15,en,em$,et,es:[139] en[178]0[167] [142]
4220 [151]53280,2:[153]"str$right$(NULL)(NULL) val(NULL)(NULL)(NULL)(NULL): ";en;em$;et;es:[141]9080
4225 [153]"(NULL)ress any key for menu"
4230 [141]180
4235 [160]1:[160]15:[160]5:[137]120
5000 [153][199](147);[163]30);"(NULL)(NULL)right$(NULL)(NULL) (NULL)val(NULL)(NULL)"
5002 [137]9075
5005 [159]4,4,7:pp[178]64:l[178]0
5010 [153] [200](cm$,3);"(NULL)umber of question available:";tq
5015 [153] [200](cm$,5);
5020 [141]1115
5025 [139] tq[171]dq[177]0 [167]5050
5030 [153]:[153]"(NULL)o questions in memory or all deleted"
5033 [153]"(NULL)ress spacebar for main menu"
5035 [141]180
5040 [139] z$[178]" "[167]120
5045 [137]5035
5050 [139]dq[178]0 [167]5075
5055 [153]:[153]"(NULL)(NULL)(NULL)right$lenval!wait only";tq[171]dq;"waitquestions will be"
5060 [153]"printed. right$f you need more, return to"
5065 [153]"menu. (NULL)hen press 1wait to write more"
5070 [153]"qestions or 7wait to undelete existing ones."
5075 [153]:[153]"lenheck printer."
5080 [153]"(NULL)ut printhead just below perforations":[153]
5085 [153]"(NULL)ress spacebarwait for main menu."
5090 [153]" (NULL) keywait to start printing"
5095 [141]180
5100 [139] z$[178]" " [167]120
5105 [139] z$[178]"p" [167]5115
5110 [137]5095
5115 [153][199](147);[200](cm$,8);"(NULL)itle of test:"
5120 x[178]60:[153][200](cm$,9);:[141]7010
5125 [139] p$[178]""[167]5120
5130 tl$[178]p$
5135 [153][199](147);[200](cm$,10);"(NULL)(NULL)val(NULL)atn(NULL)right$(NULL)chr$ (NULL)val(NULL)(NULL)"
5140 [152]4," ":[152]4," ":[152]4,[166](64[171][195](tl$))[173]2)tl$:l[178]l[170]3
5145 [152]4," ":[152]4,"(NULL)ametotototototototototototototototototototototototo":[152]4
5150 [152]4,"str$atetotototototototototototototototototototo":[152]4
5155 [152]4,"(NULL)eriodtotototototo":[152]4," ":l[178]l[170]7
5160 [153]:[153]:[153]"sorting...":n[178]0
5165 [139] q3[171]dm[178]0 [167]5275
5170 [152]4,"(NULL)atn(NULL)lenleft$right$(NULL)chr$: (NULL)rite the letter of the best answer.":
5175 [152]4," ":[152]4," ":l[178]l[170]3
5180 w[178]q3:[141]5575
5185 o[178]1
5190 [129] q[178]1 [164] q3
5195 ss(o)[178]tt(o)
5200 [139][200](ma$(q),1)[178]"^"[167]5235
5205 g[178]n[170]65
5210 w$[178]ma$(q)[170][201](v$,(29[171][195](ma$(q))))
5215 [139] n[179]26 [167] w$[178]w$[170]" "[170][199](g)[170]". "[170]mn$(ss(o)):[137]5225
5220 g[178]g[171]26:w$[178]w$[170][199](g)[170][199](g)[170]". "[170]mn$(ss(o))
5225 o[178]o[170]1
5230 [141]5565:sp[178]7:[152]4,"totototo";n$;:[141]5625
5235 [130]
5240 [139] dm[178]0[167]5275
5245 [129] q[178]1 [164] q3
5250 ss(o)[178]tt(o)
5255 [139] [200](ma$(q),1)[179][177]"^" [167]5270
5260 w$[178][201](v$,30)[170][199](n[170]65)[170]". "[170]mn$(ss(o)):o[178]o[170]1
5265 sp[178]7:[152]4," ";:[141]5625
5270 [130]
5275 [139] q1[171]dt[178]0 [167]5330
5280 [152]4,"(NULL)(NULL)(NULL)val ascatn(NULL)(NULL)val and (NULL)(NULL)right$(NULL)right$(NULL)(NULL): (NULL)rite (NULL),asc, or (NULL) for each question."
5285 [152]4," ":[152]4," ":l[178]l[170]3
5290 w[178]q1:[141]5575
5295 o[178]1
5300 [129] q[178]1 [164] q1
5305 sp(o)[178]tt(o)
5310 [139][200](tf$(sp(o)),1)[178]"^"[167]5325
5315 w$[178]tf$(sp(o)):[141]5565:sp[178]8:[152]4,"totototo";n$;:[141]5625
5320 as$(n)[178]n$[170]" "[170]an$(sp(o))
5325 o[178]o[170]1:[130]
5330 [139] q2[171]df[178]0 [167]5385
5335 [152]4,"ascright$(NULL)(NULL)-right$(NULL): (NULL)rite the answer in the space provided."
5340 [152]4," ":[152]4," ":l[178]l[170]3
5345 w[178]q2:[141]5575
5350 o[178]1
5355 [129] q[178]1 [164] q2
5360 sq(o)[178]tt(o)
5365 [139][200](fl$(sq(o)),1)[178]"^"[167]5380
5370 w$[178]fl$(sq(o)):[141]5565:sp[178]7:[152]4," "n;:[141]5625
5375 as$(n)[178]n$[170]" "[170]fs$(sq(o))
5380 o[178]o[170]1:[130]
5385 [139] q4[171]de[178]0 [167]5445
5390 [152]4,"val(NULL)(NULL)atn(NULL): atnnswer each question completely."
5395 [152]4," ":[152]4," ":l[178]l[170]3
5400 w[178]q4:[141]5575
5405 o[178]1
5410 [129] q[178]1 [164] q4
5415 sr(o)[178]tt(o)
5420 [139][200](es$(sr(o)),1)[178]"^"[167]5440
5425 w$[178]es$(sr(o)):[141]5565:sp[178]4:[152]4,n;:[141]5625
5430 [129] k[178]1 [164] b(sr(o)):[141]5715:[152]4,".";[166]62);".":[152]4," ":[130]
5435 as$(n)[178]n$[170]" "[170]en$(sr(o))
5440 o[178]o[170]1:[130]
5445 [141]5740
5450 [153][199](147);[200](cm$,14);"press atn keywait for answer key"
5455 [153]" spacebarwait for main menu"
5460 [141]180
5465 [139] z$[178]" " [167]120
5470 [139] z$[178]"a" [167]5480
5475 [137]5460
5480 [139] q3[178]0 [167]5540
5485 k[178]1:g[178]0
5490 [129]i[178]1[164]q3:k$[178][196](k):k$[178][202](k$,2,[195](k$))
5495 j[178]1
5500 [139] [200](ma$(i),1)[178]"^" [167]5535
5505 [139] j[177]q3 [167]5535
5510 [139] i[179][177]ss(j) [167]5530
5515 g[178]j[170]64:[139] j[177][178]27 [167]5525
5520 [152]4,k$[170]". "[170][199](g)[170]" "[170]mn$(i):k[178]k[170]1:[152]4," ":[137]5535
5525 g[178]g[171]26:[152]4,k$[170]". "[170][199](g)[170][199](g)[170]" "[170]mn$(i):k[178]k[170]1:[137]5535
5530 j[178]j[170]1:[137]5505
5535 [130]i
5540 [129]i[178](q3[171]dm) [164] n
5545 [152]4,as$(i):[152]4," "
5550 [130]
5555 [160]4
5560 [137]120
5565 n[178]n[170]1:[139]n[179]10[167] n$[178][196](n):n$[178]" "[170][202](n$,2,[195](n$))[170]". ":[142]
5570 n$[178][196](n):n$[178][202](n$,2,[195](n$))[170]". ":[142]
5575 [129] i[178]1[164]w:r1(i)[178][187](0):r2(i)[178]r1(i):[130]
5580 [129]i[178]w[171]1[164]1 [169][171]1
5585 [129] t[178]1 [164] i
5590 [139] r1(t)[177]r1(t[170]1) [167] te[178]r1(t):r1(t)[178]r1(t[170]1):r1(t[170]1)[178]te
5595 [130]:[130]
5600 [129]i[178]1[164]w
5605 [129]j[178]1[164]w
5610 [139]r2(i)[178]r1(j) [167] tt(i)[178]j:r1(j)[178]1
5615 [130]:[130]
5620 [142]
5625 fl[178]0
5630 [139] fl[177]0 [167] [139] [195](w$)[179][178]pp [167]5640
5635 [137]5645
5640 [152]4,[200](v$,sp)[170]w$:[152]4," ":l[178]l[170]2:[141]5715:w$[178]"":[137]5710
5645 [139] [195](w$)[179][178]pp [167] [152]4,w$:[152]4," ":l[178]l[170]2:[141]5715:w$[178]"":[137]5710
5650 [129] j[178]pp[164] 1 [169] [171]1
5655 [139] [202](w$,j,1)[179][177]" " [167]5690
5660 fl[178]fl[170]1
5665 [139] fl[178]1[167]5680
5670 [139] fl[177]1 [167] b$[178][201](a$,sp)[170][200](w$,j):j[178]1
5675 w$[178][202](w$,[195](b$)[171](sp),[195](w$)):[137]5695
5680 b$[178][200](w$,j):j[178]1
5685 w$[178][202](w$,[195](b$)[170]1,[195](w$)):[137]5695
5690 [130] j
5695 [152]4,b$
5700 l[178]l[170]1
5705 [139] [195](w$)[177]0 [167]5630
5710 [142]
5715 [139]l[179]58 [167] [142]
5720 [153] [199](147);[200](cm$,14);"(NULL)ress space bar to continue printingwait"
5725 [141]180
5730 [139] z$[178]" "[167]5740
5735 [137]5725
5740 [129] i[178]66 [164] l [169][171]1:[152]4," ":[130]
5745 [129]i[178]1 [164] 4:[152]4," ":[130]:l[178]4:[142]
6005 [160]4
6010 [153][199](147);"press spacebar for menu"[163]25)"valstr$right$(NULL) (NULL)(NULL)val(NULL)(NULL)right$(NULL)(NULL)(NULL)wait"
6015 [159]4,3:pp[178]38
6020 [153][200](cm$,2);"valnter (NULL)wait-asc valwaitssay (NULL)waitatching ascwaitill-in"
6025 [161] z$
6030 [139] z$[178]"t"[167] [141]2050:[137]6060
6035 [139] z$[178]"f"[167] [141]2050:[137]6140
6040 [139] z$[178]"e"[167] [141]2050:[137]6310
6045 [139] z$[178]"m"[167] [141]2050:[137]6220
6050 [139] z$[178]" "[167] [141]2050:[137]120
6055 [137]6025
6060 [139] q1[178]0 [167]6550
6065 [129] i[178]1 [164] q1
6070 hd$[178]"load(NULL)rue/ascalse-(NULL)pinion":[141]6390
6075 w$[178]tf$(i)
6080 [141]6405
6085 x[178]120:w$[178]tf$(i):[141]6425:dt[178]dt[170]pq
6090 tf$(i)[178]w$
6095 [139]z$[178][199](13)[167]6005
6100 [139]z$[178]"n" [167]6125
6105 [153][200](cm$,20);"(NULL)he answer is now (NULL), asc, or (NULL)?"
6110 [141]180
6115 [139](z$[178]"t")[176](z$[178]"f")[176](z$[178]"o")[167] [153] z$:an$(i)[178]z$:[137]6125
6120 [137]6110
6125 [153] [199](147)
6130 [130]
6135 [137]6005
6140 [139] q2[178]0 [167]6550
6145 [129] i[178]1 [164] q2
6150 hd$[178]"loadascill-inwait":[141]6390
6155 w$[178]fl$(i)
6160 [141]6405
6165 x[178]120:w$[178]fl$(i):[141]6425:df[178]df[170]pq
6170 fl$(i)[178]w$
6175 [139] z$[178][199](13) [167]6005
6180 [139]z$[178]"n" [167]6205
6185 [141]6420
6190 x[178]39:[153][200](cm$,18);:[141]7010
6195 [139] p$[178]"" [167]6190
6200 fs$(i)[178]p$
6205 [153] [199](147)
6210 [130]
6215 [137]6005
6220 [139] q3[178]0 [167]6550
6225 [129] i[178]1 [164] q3
6230 f2[178]1
6235 hd$[178]"load(NULL)atchingwait":[141]6390
6240 w$[178]ma$(i)
6245 [141]6405
6250 x[178]28:w$[178]ma$(i):[141]6425:dm[178]dm[170]pq
6255 ma$(i)[178]w$
6260 [139] z$[178][199](13) [167]6005
6265 [139]z$[178]"n" [167]6290
6270 [141]6420
6275 x[178]28:[153][200](cm$,18);:[141]7010
6280 [139] p$[178]"" [167]6275
6285 mn$(i)[178]p$
6290 [153] [199](147)
6295 [130]
6300 f2[178]0
6305 [137]6005
6310 [139] q4[178]0 [167]6550
6315 [129] i[178]1 [164] q4
6320 hd$[178]"loadvalssaywait":[141]6390
6325 w$[178]es$(i)
6330 [141]6405
6335 x[178]199:w$[178]es$(i):[141]6425:de[178]de[170]pq
6340 es$(i)[178]w$
6345 [139] z$[178][199](13) [167]6005
6350 [139]z$[178]"n" [167]6375
6355 [141]6420
6360 x[178]78:[153][200](cm$,18);:[141]7010
6365 [139] p$[178]"" [167]6360
6370 en$(i)[178]p$
6375 [153] [199](147)
6380 [130]
6385 [137]6005
6390 [153]hd$;[163]25)"valdit questions"
6395 [153] [200](cm$,2);"valnter (NULL)waitewrite str$waitelete (NULL)waitndelete (NULL)waitext"
6400 [142]
6405 [139] [200](w$,1)[178]"^" [167] [153]" ** deleted question ** wait":[141]6545
6410 [153] [200](cm$,5):l[178]0:[141]5625
6415 [142]
6420 [153][200](cm$,17);"(NULL)ew answer:":[142]
6425 [153][200](cm$,10);"valnter (NULL), str$, (NULL), or (NULL)":pq[178]0
6430 [141]180
6435 [139] z$[178]"r" [167]6465
6440 [139] z$[178]"d" [167]6480
6445 [139] z$[178]"u" [167]6510
6450 [139] z$[178][199](13)[167] [142]
6455 [139] z$[178]"n" [167] [142]
6460 [137]6430
6465 [153][200](cm$,12);:[141]7010
6470 [139]p$[178]""[167][142]
6472 [139] [200](w$,1)[178]"^" [167] pq[178]pq[171]1:dq[178]dq[171]1
6475 w$[178]p$:[142]
6480 [139] [200](w$,1)[179][177]"^" [167]6495
6485 [153] [200](cm$,12);"already deleted!wait":[129] wt[178]1 [164] 500:[130]
6490 [153] [200](cm$,10);v$:[137]6425
6495 w$[178]"^"[170]w$:[153][200](cm$,12);"question deletedwait"
6500 [129]wt[178]1[164]500:[130]:dq[178]dq[170]1:pq[178]pq[170]1
6505 z$[178]"n":[142]
6510 [139] [200](w$,1)[178]"^" [167]6530
6515 [153]"not a deleted question!wait"
6520 [129] wt[178]1[164]500:[130]
6525 [153] [200](cm$,10);v$:[137]6425
6530 [141]6545:[153] [200](cm$,12);" ** question restored! ** wait"
6535 [129]wt[178]1 [164] 500:[130]:z$[178]"n":dq[178]dq[171]1:pq[178]pq[171]1
6540 [142]
6545 w$[178][201](w$,[195](w$)[171]1):[142]
6550 [153]"(NULL)o questions of this typewait"
6555 [153]:[153]"(NULL)ress spacebarwait to continue"
6560 [141]180
6565 [139] z$[178]" " [167]6005
6570 [137]6560
7010 [151]198,0
7015 p$[178]""
7020 [153]"tocmd";
7025 [161]q$:[139]q$[178]""[167]7025
7030 [139]q$[178]"load"[176]q$[178]""[176]q$[178]"on"[176]q$[178]""[176]q$[178]"cmd"[176]q$[178]""[167]7025
7035 [139]q$[178]""[176]q$[178]"wait"[176][198](q$)[178]141[167]7025
7040 [139][198](q$)[178]13[167]7075
7045 [139][198](q$)[178]20[167]7060
7050 [139][195](p$)[178]x[167]7025
7055 p$[178]p$[170]q$:[153]q$"tocmd";:[137]7025
7060 [139]p$[178]""[167]7025
7065 p$[178][200](p$,[195](p$)[171]1):[153]"cmdto cmdcmd";:[139]p$[178]""[167]7020
7070 [137]7025
7075 [153]" ":[142]
8005 [129]j[178]896 [164] 933:[135]x:[151]j,x:[130]
8010 [131]160,2,177,45,153,137,0,200,192,6
8015 [131]208,246,162,1,32,198,255
8020 [131]32,228,255,201,13,240,11,164,142,145
8025 [131]140,200,132,142,196,139,208,238,76,204,255
8030 [142]
8040 [151]53280,2:[151]53281,0:[153][199](147);[163]28)"len(NULL)valatn(NULL) (NULL)(NULL)atn(NULL)val"
8045 [153][200](cm$,12);
8050 [153][163]16)"(NULL)atn(NULL)(NULL)right$(NULL)chr$!wait":[141]9080
8055 [153]:[153]"(NULL)his command will get rid of all"
8060 [153]"questions in memory."
8065 [153]:[153]"(NULL)ress spacebarwait for main menu"
8070 [153]" len keywait to clear all questions
8075 gosub180
8080 if z$=" " then120
8085 if z$="c" then gosub9035:goto120
8090 goto8075
9005 a$=" "
9010 a$=a$+a$+a$+a$+a$
9015 a$=a$+a$+a$
9020 v$=a$
9025 cm$=""
9035 tq=0:q1=0:q2=0:q3=0:q4=0
9040 dq=0:dt=0:df=0:dm=0:de=0
9045 mq=0:m1=0:m2=0:m3=0:m4=0
9050 d1=0:d2=0:d3=0:d4=0:d5=0
9055 return
9075 rem device checker
9077 open15,4,15:close15
9078 ifst=0then5005
9079 forx=1to3:print"[147][208]rinter is off..[215]ait for menu..":gosub9080:next:goto120
9080 t=87:n$="251251251251251251251"
9081 s=54272:pokes+6,96:pokes+24,15
9082 fori=1to18step3
9083 pokes+1,val(mid$(n$,i,2)):pokes+4,33
9084 forj=1tot*val(mid$(n$,i+2,1)):next
9085 pokes+4,0:next
9086 return
10000 rem directory read
10001 print"[147][208]ress space to pause[146]"
10005 open15,8,15
10010 open5,8,0,"$":gosub4215
10011 get#5,f$,f$
10012 get#5,f$,f$:iff$=""then10050
10013 getk$:ifk$=chr$(32)thengosub10075
10015 get#5,az$,bz$
10020 lf$=str$(asc(az$+chr$(0))+asc(bz$+chr$(0))*256):printlf$" ";
10025 get#5,fi$:printl$;fi$;:iffi$=""thenprint:goto10012
10030 goto10025
10050 close5:close15
10055 print"[208]ress a key to continue[146]":gosub180
10070 goto11000
10075 print"[208]ress space to continue[146]"
10080 getk$:ifk$=chr$(32)then10085
10082 goto10080
10085 print"[145][145]":return
10100 rem format a disk
10101 print"[147][198]ormat a [196]isk"
10105 open15,8,15
10110 gosub4215
10115 input"[196]isk [206]ame[157][157][157][157][157][157][157][157][157]<return to abort>[145][157][157][157][157][157][157]";nm$
10120 ifnm$=chr$(13)thenclose15:goto11000
10122 print"[198]ormatting will erase all files"
10123 input"[193]re you sure[146] [[217]/[206]]";k$
10124 ifk$<>"y"thenclose15:goto11000
10125 print"[147][198]ormating [196]isk..."
10130 print#15,"n0:"+nm$+",td"
10135 gosub4215
10140 close15:goto11000
10200 rem validate
10201 print"[147][214]alidate [196]isk"
10205 print"[214]alidating may take a while."
10210 input"[207].[203]. to proceed [[217]/[206]]";k$
10215 ifk$<>"y"then11000
10220 open15,8,15
10225 gosub4215
10230 print#15,"v0:"
10235 print"[147][214]alidating...[146]":forj=1to1100:next
10240 close15:goto11000
10300 rem scratch a file
10301 print"[147][211]cratch a file"
10305 input"[198]ile [206]ame[157][157][157][157][157][157][157][157][157]<return to abort>[145][157][157][157][157][157][157]";nm$
10310 ifnm$=chr$(13)thenclose15:goto11000
10315 input"[193]re you sure [[217]/[206]]";k$
10320 ifk$<>"y"thenclose15:goto11000
10325 print"[147][211]cratching file..."
10330 open15,8,15
10335 gosub4215
10340 print#15,"s0:"+nm$
10345 gosub4215
10350 forj=1to1100:next:close15:goto11000
10400 rem rename file
10401 print"[147][210]ename a file"
10405 input"[207]ld [206]ame[157][157][157][157][157][157][157][157][157]<return to abort>[145][157][157][157][157][157][157]";nm$
10410 ifnm$=chr$(13)thenclose15:goto11000
10425 input"[206]ew [206]ame[157][157][157][157][157][157][157][157][157]<return to abort>[145][157][157][157][157][157][157]";nw$
10430 ifnw$=chr$(13)then close15:goto11000
10435 input"[193]re you sure [[217]/[206]]";k$
10440 ifk$<>"y"thenclose15:goto11000
10445 print"[147][210]enaming ";nm$;" to ";nw$
10450 open15,8,15
10455 gosub4215
10460 print#15,"r0:"+nw$+"="+nm$
10465 gosub4215
10470 forj=1to1000:next:close15:goto11000
10500 rem initialize disk
10505 open15,8,15:gosub4215
10510 print#15,"i0:"
10515 gosub4215:print"[207].[203].[146]"
10525 forj=1to1000:nextj:close15:goto11000
11000 rem disk command menu
11005 print"[147][196]isk [195]ommands[146]"
11010 print"1.[146] [196]irectory"
11015 print"2.[146] [198]ormat a [196]isk"
11020 print"3.[146] [214]alidate a [196]isk"
11025 print"4.[146] [211]cratch a [198]ile"
11030 print"5.[146] [210]ename a [198]ile"
11040 print"6.[146] [201]nitialize"
11045 print"7.[146] [205]ain [205]enu"
11050 print"[211]elect number[146]"
11055 getz$:ifz$=""then11055
11060 z=val(z$)
11065 ifz<1orz>7then11055
11070 on z goto10000,10100,10200,10300,10400,10500,120